Document Generator - Sample Code (TxtDocumentGenerator)

Document Generator - Sample Code (TxtDocumentGenerator)

The Document Generator in this example does the following:

 

The sample code will cover the following:

Setup

This sample code needs the following to run:

About the Document Generation Rulebase:

About the TxtDocumentGenerator plugin:

To setup this scenario:

  1. Open the HealthyEating rulebase in Oracle Policy Modeling, and run Build.
  2. Copy the compiled rulebase .zip file (HealthyEating.zip) from the project output directory to the rulebase folder in Oracle Web Determinations (for example, <webroot>\WEB-INF\classes\rulebases)
  3. Copy and install the TxtDocumentGenerator.jar file or the TxtDocumentGenerator.dll file (located in examples\interview-engine\document-generator in either the Java or .NET runtime zip file) into Web Determinations; for more information, refer to Create a Plugin
  4. Run a Web Determinations Interview.

Source Code

To view the source code for the TxtDocumentGenerator sample, refer to examples/interview-engine/document-generator in either the Java or .NET runtime zip file.